﻿using ERP.ERPSystem.ProductionSystem.Dto;
using ERP.Team.ProductionSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-质量管理-待检任务
    /// </summary>
    public interface IPendingtasksService : IApplicationService
    {
        /// <summary>
        /// 获取待检任务列表（带分页）
        /// </summary>
        /// <param name="query">查询参数</param>
        /// <returns></returns>
        Task<PendingtasksPageResultDTO> GetPendingtasksPageList(PendingtasksQueryDTO query);

        /// <summary>
        /// 获取待检任务列表
        /// </summary>
        /// <param name="formCode">单据编码</param>
        /// <param name="materialName">物资名称</param>
        /// <param name="testingItems">检测类型</param>
        /// <returns></returns>
        Task<List<PendingtasksModel>> GetPendingtasksList(string? formCode, string? materialName, string? testingItems);

        /// <summary>
        /// 添加过程检验记录
        /// </summary>
        /// <param name="processDto">过程检验数据</param>
        /// <returns></returns>
        Task<bool> AddProcess(ProcessDTO processDto);
    }
}
